-- GENERATED SPELL FOR [Lord Klaq] --


function spell0_18282(pUnit, Event) --@Thorns,n/a--
pUnit:FullCastSpellOnTarget(35361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18282', 576, 1)
end

function spell1_18282(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_18282', 10273, 1)
end

function Sorts_18282(pUnit, Event)
local choix_sorts_18282 = math.random(0, 1)
if choix_sorts_18282 == 0 then
pUnit:RegisterEvent('spell0_18282', 1, 1)
end
if choix_sorts_18282 == 1 then
pUnit:RegisterEvent('spell1_18282', 1, 1)
end
end

function mob18282_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18282', math.random(1500, 3000), 1)
end

function mob18282_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18282_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18282_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18282, 1, 'mob18282_Action')
RegisterUnitEvent(18282, 2, 'mob18282_Leave')
RegisterUnitEvent(18282, 3, 'mob18282_Kill')
RegisterUnitEvent(18282, 4, 'mob18282_Die')
